package com.chen.framework.model.auth;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.chen.root.base.BaseDO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

/**
 * @author: ~龙~
 * @date: 2023/6/13 14:23
 **/
@Data
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@TableName("auth_permission")
@ApiModel(value = "Permission对象", description = "权限描述")
public class AuthPermission extends BaseDO {

    @ApiModelProperty("权限ID")
    @TableId(value = "permission_id")
    private Long permissionId;

    @ApiModelProperty("父级权限ID")
    @TableField(value = "parent_id")
    private Long parentId;

    @ApiModelProperty("层级：从0开始")
    @TableField(value = "level")
    private Integer level;

    @ApiModelProperty("权限所属的根级权限ID")
    @TableField(value = "root_permission_id")
    private Long rootPermissionId;

    @ApiModelProperty("权限code")
    @TableField(value = "code")
    private String code;

    @ApiModelProperty("权限描述")
    @TableField(value = "depict")
    private String depict;

    @ApiModelProperty("批次号")
    @TableField(value = "batch")
    private String batch;


}
